package com.shen;

/**
 * Author:shen
 * CreateDate:2020/5/26.
 * Function:
 */
public class Demo01 {
    public static void main(String[] args) {

        for (double i=1;i<1000;i++){
            double ceil =(double) Math.ceil(i)-1;
            boolean isflag=true;
            for (double j=2;j<ceil;j++){
                if(ceil%j==0){
                    isflag=false;
                }
            }
            if(isflag==true){
                System.out.println(ceil);
            }
        }
    }
}
